package com.approval.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Map;

@Data
public class CompleteTaskRequest {
    
    @NotNull(message = "任务ID不能为空")
    private Long taskId;
    
    @NotBlank(message = "审批结果不能为空")
    private String action; // approve-同意 reject-拒绝
    
    private String comment;
    
    private Map<String, Object> variables;
    
    // 是否审批通过
    private Boolean approved;
}

